/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.entity.questionwarehouse;

import com.idenger.common.persistence.DataEntity;
import com.idenger.modules.edu.entity.selectiontitle.EduSelectionTitle;

import java.util.List;

import org.hibernate.validator.constraints.Length;

/**
 * 题库Entity
 * @author 兰正军
 * @version 2017-12-28
 */
public class EduQuestionWarehouse extends DataEntity<EduQuestionWarehouse> {
	
	private static final long serialVersionUID = 1L;
	private String subjectId;		// 题目id
	private String status;		// 题目状态 备用
	
	private List<EduSelectionTitle> eduSelectionTitles;
	
	public EduQuestionWarehouse() {
		super();
	}

	public EduQuestionWarehouse(String id){
		super(id);
	}

	@Length(min=0, max=64, message="题目id长度必须介于 0 和 64 之间")
	public String getSubjectId() {
		return subjectId;
	}

	public void setSubjectId(String subjectId) {
		this.subjectId = subjectId;
	}
	
	@Length(min=0, max=64, message="题目状态 备用长度必须介于 0 和 64 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public List<EduSelectionTitle> getEduSelectionTitles() {
		return eduSelectionTitles;
	}

	public void setEduSelectionTitles(List<EduSelectionTitle> eduSelectionTitles) {
		this.eduSelectionTitles = eduSelectionTitles;
	}
	
}